package com.ps.mapper;

import com.ps.pojo.RolePremission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 角色权限表 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2020-12-18
 */
public interface RolePremissionMapper extends BaseMapper<RolePremission> {
    @Select("select permid from ps_role_premission where roleId=#{roleid}")
    public List<Integer>getPermid( Integer roleid);
}
